package com.springboot.rigger.others.callback;

import org.springframework.stereotype.Component;



/**
 * @Description:
 * @title: InvoderTemplate
 * @Author Star_Chen
 * @Date: 2022/7/22 9:47
 * @Version 1.0
 */
@Component
public class InvokerTemplate {

    public void init(int i, MyCallBack callback){
        if(i == 1){
            callback.execute();
            callback.before();
        }else{
            callback.execute();
            callback.before();
        }
    }
}
